//
//  UIDevice+ZLCategory.h
//  ZLCategoryExpand
//
//  Created by 科大 on 2024/6/20.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

#define ZLSafeTop [UIDevice zl_safeDistanceTop]
#define ZLSafeBottom [UIDevice zl_safeDistanceBottom]
#define ZLSstatusBarHeight [UIDevice zl_statusBarHeight]
#define ZLNavBarHeight [UIDevice zl_navigationBarHeight]
#define ZLNavFullHeight [UIDevice zl_navigationFullHeight]
#define ZLTabBarHeight [UIDevice zl_tabBarHeight]
#define ZLTabFullHeight [UIDevice zl_tabBarFullHeight]

@interface UIDevice (ZLCategory)
/// 顶部安全区高度
+ (CGFloat)zl_safeDistanceTop;

/// 底部安全区高度
+ (CGFloat)zl_safeDistanceBottom;

/// 顶部状态栏高度（包括安全区）
+ (CGFloat)zl_statusBarHeight;

/// 导航栏高度
+ (CGFloat)zl_navigationBarHeight;

/// 状态栏+导航栏的高度
+ (CGFloat)zl_navigationFullHeight;

/// 底部导航栏高度
+ (CGFloat)zl_tabBarHeight;

/// 底部导航栏高度（包括安全区）
+ (CGFloat)zl_tabBarFullHeight;
@end

NS_ASSUME_NONNULL_END
